package pack0621;

import java.util.Scanner;
public class DemoC {
    public static void main(String[] args) {
        Scanner scan =new Scanner(System.in);
        System.out.println("请输入一个数");
        int a = scan.nextInt();

        int sum = 0;
        int b = 0;
        for (int i = 1; i<=a; i++){
            b = b*10+a;
            sum += b;
            System.out.println("一行数"+b+"总和"+sum);

        }
    }
}
